package com.study.manage.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.study.manage.domain.enumm.Gender;
import com.study.manage.domain.enumm.LiveDieState;
import com.study.manage.domain.enumm.UserType;

@Entity
@Table(name = "sa_user")
public class User extends AbstractEntity {

    private static final long serialVersionUID = -49319164487420162L;

    public long number;
    public String inviteCode;
    public String salt;
    public String hashPassword;
    public String phone;
    public String email;
    public String name;
    public LiveDieState state = LiveDieState.LIVE;
    @Column(name = "typee")
    public UserType type;
    public Gender gender = Gender.BOY;
    public Integer birthYear;
    public String addressCity;
    public Boolean isBrandOrg = false;;
    public String pingxueTitle;
    public Long parentId;
    public int member;

    public User() {

    }

    public User(Long id) {
        this.id = id;
    }
}
